package com.ruoyi.project.util;

import com.alibaba.fastjson.JSONObject;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.ruoyi.common.json.JSON;
import lombok.Data;
import lombok.NoArgsConstructor;

import static org.apache.logging.log4j.message.MapMessage.MapFormat.JSON;

@NoArgsConstructor
@Data
public class Result {

    @JsonProperty("key2")
    private String key2;
    @JsonProperty("num")
    private String num;
    @JsonProperty("key")
    private String key;

    public String getKey2() {
        return key2;
    }

    public void setKey2(String key2) {
        this.key2 = key2;
    }

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    @Override
    public String toString() {
        return JSONObject.toJSONString(Result.class);
//                JsonUtils.toJson(Result.class);


    }
}
